import request from '@/utils/request'

export function user(params) {
  return request({
    url: `/statistics/user`,
    method: 'get',
    params
  })
}

export function resource(params) {
  return request({
    url: `/statistics/resource`,
    method: 'get',
    params
  })
}

export function help(params) {
  return request({
    url: `/statistics/help`,
    method: 'get',
    params
  })
}

export function login(data) {
  return request({
    url: `/statistics/login`,
    method: 'post',
    data
  })
}

export function resourceList(data) {
  return request({
    url: `/statistics/resource`,
    method: 'post',
    data
  })
}

export function userList(data) {
  return request({
    url: `/statistics/user`,
    method: 'post',
    data
  })
}

export function service(params) {
  return request({
    url: `/statistics/service`,
    method: 'get',
    params
  })
}

export function recharge(params) {
  return request({
    url: `/statistics/recharge`,
    method: 'get',
    params
  })
}

export function score(params) {
  return request({
    url: `/statistics/score`,
    method: 'get',
    params
  })
}
